# -*- coding: utf-8 -*-
from src.com.ydzy.util.base_util import BaserUtil

base_client=BaserUtil()
log={
    "result":0,
    "operateId":'9400_0002',
    "operateTime":1673856502,
    "operateOBJAccountType":"1",
    "operateType":"2000_0001",
    "logId":"c0951bfbe50045369c13d4e17709120f",
    "operateIdCard":"222222222222222222",
    "operateDesc":"系统管理员在Mon Jan 16 16:08:22 CST 2023时间, 修改了赵小亮, 修改条件:USER_ID = 66c1e4765170449b835b23122af81921",
    "operateCondition":{
        "operateOrgname":"江苏省公安厅",
        "openId":"c1e4765170449b835b23122af81921",
        "operateIdCard":"142726199107252458",
        "operateOrg":"430000000000",
    },
    "operateName":"系统管理员",
    "operateOBJ":"kiamUserMainId2",
    "terminalIp":"127.0.0.1",
}

param={
    "checknum":"e5d0f53107d975626e6204d025e3c69f",
    "sxsld":"rzax",
    "logType":"005",
    "1ogContents":[base_client.obj2json(log)],
}

print(base_client.obj2json(base_client.obj2json(param)))

s = "{\"companyId\": \"151515\", \"onlineTime\": \"2023-07-19 11:08:22.000\", \"orgCode\": \"test\", \"sysCode\": \"269\", \"sysDesc\": \"注册服务\", \"sysId\": \"\", \"sysName\": \"注册服务\", \"sysType\": \"01\", \"checkSum\": \"73fcd834c37149f5954f19b526517a48cc811ea81e47ac6773c939cce2444789\"}\n";
obj=base_client.json2obj(s)
print(obj)



param={
	"companyId":"qianxin",
	"orgCode":"430000000000",
	"sysName":"测试应用test",
	"onlineTime":"2023-06-08 12:23:34",
	"sysDesc":"测试应用",
	"sysCode":"101",
}

print(base_client.obj2json(base_client.obj2json(param)))

